<template>
  <div class='federation'>
    模块联邦
    <HelloWorld msg="number" />
  </div>
</template>
<script setup lang='ts'>
import { defineAsyncComponent } from "vue";
const HelloWorld = defineAsyncComponent(() => import("online_exam_pc/helloworld"));
const testjs = import("online_exam_pc/testjs").then((res) => {
  console.log("res", res);
});

import("online_exam_pc/counterstore").then((res) => {
  const { useCounterStore } = res;
  const counterstore = useCounterStore();
  console.log("counterstore", res, counterstore);
  console.log('count', counterstore.count);

});
console.log("testjs", testjs);

// const useCounterStore = () => import("online_exam_pc/counterstore")
// const counterstore = useCounterStore();
// console.log(counterstore);

// console.log(counterstore.count);

// Object.defineProperty(this, a)
</script>
<style lang='scss' scoped>
.federation {


}
</style>
